import request from "../utils/request";
//加入购物车
export const addCartApi = (skuId, count) => {
  return request.post("/member/cart", { skuId, count });
};
//获取最新购物车列表
export const getNewCartListApi = () => {
  return request.get("/member/cart");
};
//删除购物车
export const deleteCartApi = (ids) => {
  return request({
    url: "/member/cart",
    method: "delete",
    data: { ids },
  });
};
